<template name="sandstormGrainSettingsPage">
  <div class="grain-settings">
    <h1>{{_ "grains.settings.title" }}</h1>
    <button class="grain-settings-return-to-grain-button">{{_ "grains.settings.returnToGrain" }}</button>
    <h2>{{_ "grains.settings.scheduledTasks.title" }}</h2>
    <table class="grain-settings-scheduled-jobs-table">
      <tr class="header-row">
        <th>{{_ "grains.settings.scheduledTasks.headings.description"}}</th>
        <th>{{_ "grains.settings.scheduledTasks.headings.period"}}</th>
        <th>{{_ "grains.settings.scheduledTasks.headings.next"}}</th>
        <th>{{_ "grains.settings.scheduledTasks.headings.created"}}</th>
      </tr>
      {{#each job in scheduledJobs }}
      <tr class="job-row">{{> sandstormGrainSettingsScheduledJob job=job}}</tr>
      {{/each}}
    </table>
  </div>
</template>

<template name="sandstormGrainSettingsScheduledJob">
  <td>{{description}}</td>
  <td>{{period}}</td>
  <td>{{next}}</td>
  <td>{{created}}</td>
</template>
